from selenium import webdriver
from time import sleep


#刷新页面
driver = webdriver.Firefox()
driver.get('https://www.baidu.com/')
sleep(2)
driver.refresh()
sleep(2)
driver.quit()

#浏览器窗口最大化、最小化
# driver = webdriver.Firefox()
# driver.get('https://www.ptpress.com.cn/')
# sleep(2)
# driver.maximize_window()
# sleep(2)
# driver.minimize_window()
# sleep(2)
# driver.quit()